import axios from '../util/http'
// const Login = {
// 	 // 获取验证码
// 	goPhoneCode(query) {
// 	  return axios({
// 		method:'post',
// 		url:`/phoneCode`,
// 		params:query
// 	  })
// 	},
// }
// export default Login

export function goPhoneCode(data) {
	// 确保 config 对象有 data 属性，如果没有则默认为 {}
	return axios({
		method:'post',
		url:`/wechat/sanbao-shifu/login`,
		data
	})
}

export function getCount(query) {
	return axios({
		method:'get',
		url:`/wechat/sanbao-shifu/get-count`,
		data:query
	})
}

export function resetPassword(data) {
	return axios({
		method:'post',
		url:`/wechat/sanbao-shifu/reset-password`,
		data
	})
}

export function driverLogin(data) {
	return axios({
		method:'post',
		url:`/wechat/driver/login`,
		data
	})
}